package com.lanou.mapper;

import com.lanou.bean.Service;
import org.apache.ibatis.annotations.Param;

import java.util.List;


import java.util.List;

public interface ServiceMapper {
    void deleteServiceByAccount (@Param("id") int id);
    List<Service> selectAllBill();
    Service selectAllBillById (@Param("id") int id);

    List<Service> selectAllService();

    Service selectServiceByServiceId(@Param("id") int id);

    void delectService(@Param("id") int id);

    void updateStatu(@Param("id") int id,@Param("statu") String status);
    void updataService(@Param("serviceid") int id,@Param("costid") int costid);
    void updataServiceByaccountId(@Param("accountId") int id,@Param("statu") String statu);

    void insertService(Service service);
    List<Service> selectByOSName(@Param("osName") String osName,
                                 @Param("ip") String ip,
                                 @Param("status")String status,
                                 @Param("card") String card);
    Service selectByServiceId(@Param("id") int id);

    void updatePauseDate(@Param("pause")String pause,@Param("serviceId") int id);
    void updateDelPauseDate(@Param("pause") String pause,@Param("serviceId") int id);

    void updateCloseDate(@Param("close")String close,@Param("serviceId") int id);

    List<Service> selectServiceBySearch (@Param("login_name") String login_name ,
                                          @Param("idcard_no") String idcard_no,
                                          @Param("real_name") String real_name);





}